package cn.itcast.demo.dao;

import cn.itcast.demo.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserDaoFallback implements UserClient {
    @Override
    public User queryUserById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("使用feign查询失败");
        return user;
    }
}
